﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KMF.Common;
using KMF.DAL;
using DevTrends.MvcDonutCaching;

namespace KMF.WebUI.Controllers
{
    public class ContactController : Controller
    {
        //
        // GET: /Contact/
        [DonutOutputCache(CacheProfile = "OneDay")]
        public ActionResult Index()
        {
            
            var model = ContactDb.GetAll() ?? new List<ContactDto>();
            return View(model);
        }

    }
}
